package oo.day02;



public class Student {
    String name;
    int age;
    boolean aBoolean;//默认为false

    void say(){
        System.out.println("大家好，我叫"+name+"我今年"+age+"岁了"+aBoolean);

    }

    public Student(String name, int age, boolean aBoolean) {
        System.out.println("有参构造方法");
        this.name = name;
        this.age = age;
        this.aBoolean = aBoolean;
    }

    public Student() {
        System.out.println("默认构造方法");
    }
}
